package com.ax.action.main;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;

import com.ax.pojo.TabContents;
import com.ax.service.TabContentsService;
import com.ax.utils.BaseAction;

@Controller("contentAction")
public class ContentAction extends BaseAction {
   
	
	private TabContentsService tabContentsService;
	
	@Resource(name="tabContentsService")
	public void setTabContentsService(TabContentsService tabContentsService) {
		this.tabContentsService = tabContentsService;
	}

	public String get(){
		String id=request.getParameter("id");
	   TabContents contents=tabContentsService.getContentsById(Integer.parseInt(id));
	   request.setAttribute("contents", contents);
		return "get";
	}
}
